package gms.simulation;

import java.util.Comparator;

/**
 * Created by IntelliJ IDEA.
 * User: Anton Dunaev
 * Date: 20.09.2007
 * Time: 14:30:15
 */
public class OperationComparator implements Comparator<Operation>
{

    public int compare(Operation o1, Operation o2)
    {
        if( o1.getTime_start() > o2.getTime_start() )
            return 1;
        else if( o1.getTime_start() < o2.getTime_start() )
            return -1;
        else
            return 0;
    }
}


